{% extends 'admin-v2/layout.html.twig' %}

{% set menu = 'admin_v2_article_set' %}
{% set script_controller = 'article/setting' %}

{% block main %}


{{ web_macro.flash_messages() }}

  <form class="form-horizontal" id="article-form" method="post">

    <div class="form-group">
      <div class="col-md-2 control-label">
        <label for="name">{{'admin.article_setting.name'|trans}}</label>
      </div>
      <div class="col-md-8 controls">
        <input type="text" id="name" name="name" class="form-control" value="{{ articleSetting.name }}">
      </div>
    </div>

    <div class="form-group">
      <div class="col-md-2 control-label">
        <label for="pageNums">{{'admin.article_setting.pageNum'|trans}}</label>
      </div>
      <div class="col-md-8 controls">
        <input type="text" id="pageNums" name="pageNums" class="form-control" value="{{ articleSetting.pageNums }}">
      </div>
    </div>

{#    <div class="row form-group">#}
{#      <div class="col-md-2 control-label"><label >{{'admin.article_setting.article_comments_manage'|trans}}</label></div>#}
{#      <div class="col-md-1 control-label control-label--short">{{ 'admin.setting_course.open_course.open_course_review'|trans }}：</div>#}
{#      <div class="controls col-md-7 radios">#}
{#          {{ radios('show_comment', {1:'admin.setting_course.open'|trans, 0:'admin.setting_course.closed'|trans}, articleSetting.show_comment|default('1')) }}#}
{#      </div>#}
{#    </div>#}

    <div class="row form-group">
      <div class="col-md-2 control-label"><label >{{'admin.article_setting.article_copy_manage'|trans}}</label></div>
      <div class="controls col-md-7 radios">
        {{ radios('copy_enabled', {1:'admin.setting_course.open'|trans, 0:'admin.setting_course.closed'|trans}, articleSetting.copy_enabled|default('1')) }}
      </div>
    </div>

    <div class="form-group">
      <div class="col-md-2 control-label"></div>
      <div class="controls col-md-8">
        <button type="submit" class="btn btn-primary">{{'form.btn.submit'|trans}}</button>
      </div>
    </div>

    <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
  </form>

{% endblock %}